<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "Web_manage_admin".
 *
 * @property integer $ID
 * @property string $UserName
 * @property string $Password
 * @property string $Purview
 * @property integer $UserGroup
 * @property string $LastLoginIP
 * @property string $LastLoginTime
 * @property string $LastLogoutTime
 * @property integer $LoginTimes
 * @property integer $AdminPurview_Article_T
 * @property integer $AdminPurview_Soft_T
 * @property integer $AdminPurview_Photo_T
 * @property string $AdminPurview_Guest_T
 * @property string $AdminPurview_Others_T
 * @property string $RndPassword_T
 */
class WebManageAdminModel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'Web_manage_admin';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['UserName', 'Password', 'Purview', 'LastLoginIP', 'AdminPurview_Guest_T', 'AdminPurview_Others_T', 'RndPassword_T'], 'string'],
            [['UserGroup', 'LoginTimes', 'AdminPurview_Article_T', 'AdminPurview_Soft_T', 'AdminPurview_Photo_T'], 'integer'],
            [['LastLoginTime', 'LastLogoutTime'], 'safe'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'UserName' => 'User Name',
            'Password' => 'Password',
            'Purview' => 'Purview',
            'UserGroup' => 'User Group',
            'LastLoginIP' => 'Last Login Ip',
            'LastLoginTime' => 'Last Login Time',
            'LastLogoutTime' => 'Last Logout Time',
            'LoginTimes' => 'Login Times',
            'AdminPurview_Article_T' => 'Admin Purview  Article  T',
            'AdminPurview_Soft_T' => 'Admin Purview  Soft  T',
            'AdminPurview_Photo_T' => 'Admin Purview  Photo  T',
            'AdminPurview_Guest_T' => 'Admin Purview  Guest  T',
            'AdminPurview_Others_T' => 'Admin Purview  Others  T',
            'RndPassword_T' => 'Rnd Password  T',
        ];
    }
}
